<template>
  <div class="app">
    
     <router-view></router-view>
  </div>
</template>
<script>
export default {
  data() {
    return {

    }
  },
  methods:{
    getlogin(){
      if(!localStorage.token){
        this.$router.push("/login")
      }
    }
  },
  created(){
    this.getlogin()
  }
}
</script>
<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
</style>